When we start cycling on a subset, abort
after a while.
{
char *first = NULL;
char *last = NULL;
- char *name;
+ char *name = NULL;
GString *output = g_string_new ("");
GtkWidget *focus;
+ int count = 0;
gtk_widget_show (window);
}
g_string_append_printf (output, "%s\n", name);
+ count++;
if (!first)
first = g_strdup (name);
g_free (last);
last = g_strdup (name);
+ if (count == 100)
+ {
+ g_string_append (output, "ABORT\n");
+ break;
+ }
+
g_free (name);
}
+ g_free (name);
g_free (first);
g_free (last);